package com.itheima.service;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Transactional
public interface UserService {



    public List<User> selectAll();



    public User selectById(int id);


    public boolean add(User user);


    public boolean update(User user);


    public boolean deleteById(int id);
}
